package com.rongc.client.freight.business.waybill.model;

import com.google.gson.annotations.SerializedName;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.model.BaseDic;

import java.util.List;

/**
 * Created by Bruce on 2017/8/5.
 */
public class WayBillDetailBean extends WayBillBean{
    @SerializedName("sjid")
    String sjid;
    @SerializedName("sjlng")
    String sjlng;
    @SerializedName("score")
    String score;
    @SerializedName("cost")
    String cost;
    @SerializedName("sjnick")
    String sjnick;
    @SerializedName("sjlat")
    String sjlat;
    @SerializedName("wuliulist")
    List<LogisticsBean> wuliulist;
    @SerializedName("jiedanNumber")
    String jiedanNumber;
    @SerializedName("xiadanNumber")
    String xiadanNumber;
    @SerializedName("sjmobile")
    String sjmobile;
    @SerializedName("sjimg")
    String sjimg;
    @SerializedName("sj_price")
    String sj_price;
    @SerializedName("hzmobile")
    String hzmobile;
    @SerializedName("hzimg")
    String hzimg;
    @SerializedName("hznick")
    String hznick;



    @SerializedName("is_comment")
    String is_comment;  // 是否已评价(1已评价2未评价)
    @SerializedName("is_huidan")
    String is_huidan;   // 是否回单(1已回单2未回单)

    public String getSjid() {
        return sjid;
    }

    public void setSjid(String sjid) {
        this.sjid = sjid;
    }

    public String getSjlng() {
        return sjlng;
    }

    public void setSjlng(String sjlng) {
        this.sjlng = sjlng;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getSjnick() {
        return sjnick;
    }

    public void setSjnick(String sjnick) {
        this.sjnick = sjnick;
    }

    public String getSjlat() {
        return sjlat;
    }

    public void setSjlat(String sjlat) {
        this.sjlat = sjlat;
    }

    public List<LogisticsBean> getWuliulist() {
        return wuliulist;
    }

    public void setWuliulist(List<LogisticsBean> wuliulist) {
        this.wuliulist = wuliulist;
    }

    public String getJiedanNumber() {
        return jiedanNumber;
    }

    public void setJiedanNumber(String jiedanNumber) {
        this.jiedanNumber = jiedanNumber;
    }

    public String getXiadanNumber() {
        return xiadanNumber;
    }

    public void setXiadanNumber(String xiadanNumber) {
        this.xiadanNumber = xiadanNumber;
    }

    public String getSjmobile() {
        return sjmobile;
    }

    public void setSjmobile(String sjmobile) {
        this.sjmobile = sjmobile;
    }

    public String getSjimg() {
        return sjimg;
    }

    public void setSjimg(String sjimg) {
        this.sjimg = sjimg;
    }

    public String getIs_comment() {
        return is_comment;
    }

    public void setIs_comment(String is_comment) {
        this.is_comment = is_comment;
    }

    public String getIs_huidan() {
        return is_huidan;
    }

    public void setIs_huidan(String is_huidan) {
        this.is_huidan = is_huidan;
    }

    public String getSj_price() {
        return sj_price;
    }

    public void setSj_price(String sj_price) {
        this.sj_price = sj_price;
    }

    public String getHzmobile() {
        return hzmobile;
    }

    public void setHzmobile(String hzmobile) {
        this.hzmobile = hzmobile;
    }

    public String getMobileByType(){
        switch (UniApplication.getInstance().getType()){
            case BaseDic.IdentityType.DRIVING_TYPE:
                return getSjmobile();
            default:
                return getHzmobile();
        }
    }

    public String getCostByType(){
        switch (UniApplication.getInstance().getType()){
            case BaseDic.IdentityType.DRIVING_TYPE:
                return getSj_price();
            default:
                return getCost();
        }
    }

    public String getHzimg() {
        return hzimg;
    }

    public void setHzimg(String hzimg) {
        this.hzimg = hzimg;
    }

    public String getHznick() {
        return hznick;
    }

    public void setHznick(String hznick) {
        this.hznick = hznick;
    }
}
